package cn.com.surker.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 车辆登记信息
 * </p>
 *
 * @author admin
 * @since 2023-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class OaCarInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long uid;

    /**
     * 姓名
     */
    private String name;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 车牌号
     */
    private String carNo;

    /**
     * 公司ID
     */
    private Long orgId;

    /**
     * 公司名称
     */
    private String orgName;

    /**
     * 车辆类型(1：小型车、2：SUV、3：大型车辆、4：其他)
     */
    private Integer type;

    /**
     * 车辆性质(0:内部车辆、1：外包公司、2：临时车辆)
     */
    private Integer quality;

    /**
     * 状态(0:启用、1：禁用)
     */
    private Integer status;

    /**
     * 有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date validTime;

    /**
     * 备注
     */
    private String remark;

    /**创建人**/
    private Long creator;

    /**修改人**/
    private Long updateId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    public OaCarInfo(Long uid, String name, String phone, String carNo, Long orgId, String orgName, Integer type, Integer quality, Integer status, Date validTime, String remark, Date createTime) {
        this.uid = uid;
        this.name = name;
        this.phone = phone;
        this.carNo = carNo;
        this.orgId = orgId;
        this.orgName = orgName;
        this.type = type;
        this.quality = quality;
        this.status = status;
        this.validTime = validTime;
        this.remark = remark;
        this.createTime = createTime;
    }
}
